Skip to content

Remove SQLModel query deprecation warnings#693

Merged
MaxGhenis merged 3 commits intomainfrom
codex/fix-ci-warnings
Apr 9, 2026
Merged

Remove SQLModel query deprecation warnings#693
MaxGhenis merged 3 commits intomainfrom
codex/fix-ci-warnings

Conversation

@MaxGhenis
Copy link
Copy Markdown
Contributor

Summary

  • replace legacy session.query(...) lookups with session.exec(select(...)) in the SOI ETL loaders
  • update the focused national-target test to use the same SQLModel pattern and avoid test-side warnings
  • add a changelog fragment for the CI warning cleanup

Testing

  • UV_PYTHON=3.14 uv run pytest tests/unit/test_etl_irs_soi_overlay.py tests/unit/test_etl_national_targets.py -q
  • UV_PYTHON=3.14 uv run ruff check policyengine_us_data/db/etl_irs_soi.py policyengine_us_data/db/etl_national_targets.py tests/unit/test_etl_national_targets.py
  • UV_PYTHON=3.14 uv run ruff format --check policyengine_us_data/db/etl_irs_soi.py policyengine_us_data/db/etl_national_targets.py tests/unit/test_etl_national_targets.py

Copy link
Copy Markdown
Collaborator

@baogorek baogorek left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Mostly a "safe, mechanical refactor," but I'm requesting one line be removed (with .unique). Let me know if you want to discuss.

@MaxGhenis MaxGhenis force-pushed the codex/fix-ci-warnings branch from 5b96ee3 to ec27d98 Compare April 9, 2026 03:01
@MaxGhenis MaxGhenis merged commit a4f9f3d into main Apr 9, 2026
9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants